package com.tanhua.dubbo;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.domain.UserInfo;
import com.tanhua.vo.PageResult;
import com.tanhua.vo.RecommendUserVo;

import java.util.List;

public interface UserInfoAPI {

    public abstract void save(UserInfo userInfo);

    public abstract void update(UserInfo userInfo);

    UserInfo findById(Long userId);

    Page<UserInfo> findTuiJianLiebiao(List<Long> idList, RecommendUserVo recommendUserVo);

    PageResult findByCondition(Integer page, Integer pagesize, String keyword, List<Long> firendIdList);

    List<UserInfo> findNearUserByGenderAndIdList(String gender, List<Long> userIdList);
}
